home *** CD-ROM | disk | FTP | other *** search
- 80
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- GetVolume
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baGetVolume gets the current volume level of wave files and audio CD.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baGetVolume( Device )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Device is the device to get the volume of. Can be:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "master"
- --- RECORDSEPARATOR ---
- gets the master volume
- --- RECORDSEPARATOR ---
- "wave"
- --- RECORDSEPARATOR ---
- gets the volume of wave and video files
- --- RECORDSEPARATOR ---
- "cd"
- --- RECORDSEPARATOR ---
- gets the volume of audio CD playback
- --- RECORDSEPARATOR ---
- "midi"
- --- RECORDSEPARATOR ---
- gets the volume of an external midi device
- --- RECORDSEPARATOR ---
- "synth"
- --- RECORDSEPARATOR ---
- gets the volume of the internal FM synthesizer
- --- RECORDSEPARATOR ---
- "master mute"
- --- RECORDSEPARATOR ---
- gets the master mute state
- --- RECORDSEPARATOR ---
- "wave mute"
- --- RECORDSEPARATOR ---
- gets the wave mute state
- --- RECORDSEPARATOR ---
- "cd mute"
- --- RECORDSEPARATOR ---
- gets the CD mute state
- --- RECORDSEPARATOR ---
- "synth mute"
- --- RECORDSEPARATOR ---
- gets the built-in synthesizer mute state
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Macintosh:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "speakers"
- --- RECORDSEPARATOR ---
- gets the volume of external speakers
- --- RECORDSEPARATOR ---
- "wave"
- --- RECORDSEPARATOR ---
- gets the volume of the internal speaker
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns the volume of the requested device. The volume level can be between 0
- --- RECORDSEPARATOR ---
- (silence) and 100 (maximum). The mute options will return 1 if the mute is on, or 0
- --- RECORDSEPARATOR ---
- if it isn't.
- --- RECORDSEPARATOR ---
- Returns -1 if the function is not supported.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set Volume = baGetVolume( "wave" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- Volume := baGetVolume( "wave" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Not all sound cards on Windows support this function. Some cards will only support
- --- RECORDSEPARATOR ---
- some of the device types. They will return -1 if
- --- RECORDSEPARATOR ---
- the function is not supported.
- --- RECORDSEPARATOR ---
- The function will get the volume from the first sound card found.
- --- RECORDSEPARATOR ---
- If the left and right channels are at different levels, then the average of the two is
- --- RECORDSEPARATOR ---
- returned.
- --- RECORDSEPARATOR ---
- Some sound cards do not set the volume precisely. For example, if you set the
- --- RECORDSEPARATOR ---
- volume to 50 using the baSetVolume function, then call this function, it may return
- --- RECORDSEPARATOR ---
- an 48 or 49.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , you can also use "master" for "speakers".
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetVolume